Page({
  data: {
    cuponIndex: 0,
    userCuponIndex: 0,
    userOrderIndex: 0,
    orderPeopleNumberArray: ['1', '2', '3', '4', '5', '6'
      , '7', '8', '9', '10', '11', '12', '13', '14', '15', '16'
      , '17', '18', '19', '20', '21', '22', '23', '24', '25', '26'
      , '27', '28', '29', '30', '31', '32', '33', '34', '35', '36'
      , '37', '38', '39', '40'],
    startDate: "",
    defaultDate: "请选择日期",
    endDate: "2315-09-01",
    startTime: "00:01",
    defaultTime: "请选择时间",
    endTime: "24:00",
    desireTime: "",
    desireDate: "",
  },
  bindPickerCuponChange: function (e) {
    this.setData({
      cuponIndex: e.detail.value
    })
  },

  getDesireDate: function (e) {
    this.setData({
      desireDate: e.detail.value,
      defaultDate: e.detail.value
    })
  },
  getDesireTime: function (e) {
    this.setData({
      desireTime: e.detail.value,
      defaultTime: e.detail.value
    })
  }
})